package com.itheima.health.dao;

import com.itheima.health.pojo.OrderSetting;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/*
预约时间表设置
 */
@Mapper
public interface OrderSettingDao {
    /*
    批量添加数据
     */

   void insert(OrderSetting orderSetting);


    /*
    查询预约订单列表
     */
    OrderSetting selectByOrderDate(Date orderDate);

    /*
    查询每月的日期
    根据日期范围进行查找
     */
    List<OrderSetting> selectByOrderDate1(@Param("startDate") String startDate, @Param("endDate") String endDate);



    /*
        根据id修改可预约人数
     */
    void updateReservationsById(@Param("id") Integer id, @Param("reservations") int reservations);
    void updateByDateId(@Param("id") Integer id, @Param("number") int number);


     OrderSetting selectOrderDate(Date orderDate);
}
